//
//  Deal.h
//  团购
//
//  Created by mj on 13-11-2.
//  Copyright (c) 2013年 itcast. All rights reserved.
//  一个团购模型

#import <Foundation/Foundation.h>
#import "TGRestriction.h"
@interface TGDealModel : NSObject
/** 团购ID*/
@property (nonatomic, copy) NSString *deal_id;
/** 标题*/
@property (nonatomic, copy) NSString *title; 
/**描述 */
@property (nonatomic, copy) NSString *desc;
/** */
@property (nonatomic, assign) double list_price;
/**当前价格 */
@property (nonatomic, assign) double current_price;
/** */
@property (nonatomic, readonly) NSString *list_price_text;
/** 当前价格*/
@property (nonatomic, readonly) NSString *current_price_text;
/**区域 */
@property (nonatomic, strong) NSArray *regions;
/** 分类*/
@property (nonatomic, strong) NSArray *categories;
/**已购买人数 */
@property (nonatomic, assign) int purchase_count;
/**发布日期 */
@property (nonatomic, strong) NSString *publish_date;
/**下架日期 */
@property (nonatomic, strong) NSString *purchase_deadline;
/** 图片*/
@property (nonatomic, copy) NSString *image_url;
/** 小图*/
@property (nonatomic, copy) NSString *s_image_url;
/**链接 */
@property (nonatomic, copy) NSString *deal_h5_url;


// 扩充详情界面需要显示的数据
/**  团购详情 */
@property (nonatomic, copy) NSString *details;
/** 重要通知 */
@property (nonatomic, copy) NSString *notice;
/** 限制 */
@property (nonatomic, strong) TGRestriction *restrictions;

/** 商家信息 */
@property (nonatomic, strong) NSArray *businesses;


// 额外的属性
/** 是否被收藏 */
@property (nonatomic, assign) BOOL collected;

+(instancetype)dealModelWithDict:(NSDictionary *)dict;
@end